/**
 * 会议室实体类
 * @Author czx
 * @Date 2025/3/3
 * @Time 14:06
 */
public class MeetingRoom {
    //会议室名称
    private String name;
    //会议室容纳量
    private int capacity;
    //会议室是否配备多媒体设备
    private boolean hasMultimedia;

    //构造方法
    public MeetingRoom(String name, int capacity, boolean hasMultimedia) {
        this.name = name;
        this.capacity = capacity;
        this.hasMultimedia = hasMultimedia;
    }

    //getter 和 setter
    public void setName(String name) {
        this.name = name;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    public void setHasMultimedia(boolean hasMultimedia) {
        this.hasMultimedia = hasMultimedia;
    }

    public String getName() {
        return name;
    }

    public int getCapacity() {
        return capacity;
    }

    public boolean hasMultimedia() {
        return hasMultimedia;
    }

    public String toString() {
        return "会议室{" +
                "name='" + name + '\'' +
                ", capacity=" + capacity +
                ", hasMultimedia=" + (hasMultimedia?"有":"无") +
                '}';
    }
}
